package com.object;

/**
 * @author xiangui
 * 描述:
 * 时间: Create in 14:15 2018/7/20
 */
class Building{}

class House extends Building{}

public class ClassCasts {

    public static void main(String[] args) {
        Building building = new House();
        Class<House> houseType = House.class;
        House h = houseType.cast(building);
        h = (House)building;
    }

}
